import 'package:flutter/material.dart';

class mine extends StatelessWidget{
  mine({
    Key key,
    @required this.text,
  }) : super(key: key);
  final String text;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
       appBar: AppBar(
        title: Text("New Route"),
      ),
      body: Padding(
        padding: EdgeInsets.all(18),
        child: Center(
          child: Column(
            children: <Widget>[
              Text(text),
              RaisedButton(
                onPressed: () => Navigator.pop(context,text + ",我是返回值"),
                child: Text("返回"),
              )
            ],
          ),
        ),
      ),
     );
  }
}